package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.Sku;
import com.heima.pojo.dto.ClassDto;
import com.heima.pojo.vo.SkuClassVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SkuMapper extends BaseMapper<Sku> {

//    @Select("select * from tb_sku left join tb_sku_class tsc on tb_sku.class_id = tsc.class_id where sku_name = #{skuName};")
    List<SkuClassVo> querySku(String skuName);
}
